package com.chtw.oasystem.mapper;

import com.chtw.oasystem.bean.FullUserInfo;
import com.chtw.oasystem.bean.Users;
import com.chtw.oasystem.bean.UsersExample;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UsersMapper {
    int countByExample(UsersExample example);

    int deleteByExample(UsersExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Users record);

    int insertSelective(Users record);

    List<Users> selectByExample(UsersExample example);

    Users selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Users record, @Param("example") UsersExample example);

    int updateByExample(@Param("record") Users record, @Param("example") UsersExample example);

    int updateByPrimaryKeySelective(Users record);

    int updateByPrimaryKey(Users record);

    List<FullUserInfo> selectFullUserInfo(String search, String dept_id);

    FullUserInfo selectFullUserByUserId(String user_id);

    List<FullUserInfo> findFullUserInfo(FullUserInfo fullUserInfo);

    int selectMaxId();
}